package com.hoshiicloud.goods.feign;

import com.hoshiicloud.goods.feign.hystrix.HystrixIdGeneratorFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @title: IdGeneratorService
 * @author zhangshuhu
 * @projectName hoshiicloud
 * @description: 主键服务
 * @since 2019-05-21
 */
@FeignClient(name = "hoshiicloud-id-generator", fallback = HystrixIdGeneratorFeignFallback.class)
@Repository
public interface IdGeneratorService {

	/**
	 * 获取主键
	 *
	 * @return String
	 */
	@GetMapping("/getuuId")
	String queryGeneratorId();

}
